const test = {
    //试题的题目
    namespaced: true,
    state: () => ({
        lineArr: []
    }),
    mutations: {
        increment (state,data) {
            state.lineArr.push(data)
        },
        subtract(state,data){
            state.lineArr.splice(state.lineArr.indexOf(data),1);
        },
        reset(state){
            state.lineArr = []
        }
    },
}

export default test
